Posted by Greg O'Sullivan from regulus.its.deakin.edu.au (139.132.100.2) on March 27, 1999 at 23:14:36:
I need to generate a quaternion representing the
orientation of 3D shape based on it's current
x,y,z coordinates and the coordinates of a point
the object is facing. Anyone go any tips on
how to do this? I though I could just set the
vector component of the quat to a unit vector
pointing at the target point, but this results
in shapes upside down, pointing up in the air and
all sorts of weird stuff. Obviously my
understanding of Quaternion math is lacking.
Greg O'Sullivan